﻿#include "home_dialog.h"
#include "ui_home_dialog.h"
#include "vip_dialog.h"
#include "con_produce_dialog.h"
#include "emp_dialog.h"
#include "supply_dialog.h"
#include "record_dialog.h"
#include "cash_produce_dialog.h"
//管理员界面
home_dialog::home_dialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::home_dialog)
{
    ui->setupUi(this);
}

home_dialog::~home_dialog()
{
    delete ui;
}

void home_dialog::on_cashBtn_clicked()
{
    emp_dialog *emp = new emp_dialog();
    emp->exec();
}

void home_dialog::on_vipBtn_clicked()
{
    vip_dialog *vip = new vip_dialog();
    vip->exec();
}

void home_dialog::on_conProBtn_clicked()
{
    con_produce_dialog *conPro = new con_produce_dialog();
    conPro->exec();
}

void home_dialog::on_supplyBtn_clicked()
{
    supply_dialog *supply = new supply_dialog();
    supply->exec();
}

void home_dialog::on_dealBtn_clicked()
{
    record_dialog *record = new record_dialog();
    record->exec();
}

void home_dialog::on_proBtn_clicked()
{
    cash_produce_dialog *cash = new cash_produce_dialog;
    cash->exec();
}
